// 自动生成模板CTypes
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type CTypes struct {
      global.GVA_MODEL
      Name  string `json:"name" form:"name" gorm:"column:name;comment:名称;type:varchar(255);"`
      Pic  string `json:"pic" form:"pic" gorm:"column:pic;comment:图片;type:varchar(255);"`
      Pid  int `json:"pid" form:"pid" gorm:"column:pid;comment:父级分类;type:int;size:10;"`
      CTypes []CTypes `json:"c_types" gorm:"foreignKey:Pid;references:ID"`
}


func (CTypes) TableName() string {
  return "c_types"
}

